package com.ciaojian.client.service;

import com.ciaojian.core.mapper.ProductGroupMapper;
import com.ciaojian.core.mapper.TimesCardMapper;
import com.ciaojian.core.model.ProductGroup;
import com.ciaojian.core.model.TimesCard;
import com.ciaojian.core.service.TimesCardService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author oxiny
 */
@Service
public class TimesCardServiceImpl extends TimesCardService<TimesCardMapper, TimesCard> {
    @Resource
    private ProductGroupMapper productGroupMapper;

    /**
     * 获取门店次卡信息
     *
     * @param storeId 门店ID
     * @return 门店次卡信息
     */
    public List<ProductGroup> getProductGroup(Integer storeId){
        return productGroupMapper.listByStoreId(storeId);
    }
}
